export function getDictLabel(dict, keyVal, keyCode1, keyCode2) {
    keyCode1 = keyCode1 || "value";
    keyCode2 = keyCode2 || "label";
    const obj = dict.filter((e) => e[keyCode1] === keyVal);
    if (obj.length === 0) {
      return keyVal;
    }
    return obj[0][keyCode2];
  }